package com.lyon.custom.api.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * @author LeeYan9
 * @since 2021-11-29
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConfigListenerReqVO implements Serializable {

    private static final long serialVersionUID = -8912177253464127212L;
    @NotBlank(message = "tenantId不能为空")
    private String tenantId;

    @NotEmpty(message = "MD5组不能为空")
    private Map<String,String> clientMd5Map;

    @NotNull(message = "同步类型不能为空")
    private Boolean sync;

    private Integer pollingTimeout;
}
